package com.solution.admin.order.entity;

import java.math.BigDecimal;
import java.math.BigDecimal;
import java.util.List;

import com.solution.admin.product.entity.ProductSpecEntity;
import com.solution.common.entity.BaseEntity;

/**
 * 订单商品详情实体类
 * @author lilp
 * @date 2017-09-15 18:31:33
 */
public class OrderDetailEntity extends BaseEntity {
	private static final long serialVersionUID = -3926291988306842687L;
	
	
	/**
	 * 订单编号
	 */
	private String orderCode;
	
	/**
	 * 商品id
	 */
	private long productId;
	
	/**
	 * 商品编号
	 */
	private String productCode;
	
	/**
	 * 商品名称
	 */
	private String productName;
	
	/**
	 * 商品规格
	 */
	private String productSpec;
	
	/**
	 * 商品规格项列表
	 */
	private List<ProductSpecEntity> productSpecList;
	
	/**
	 * 商品活动（描述信息）
	 */
	private String promotionInfo;
	
	/**
	 * 活动结果
	 */
	private String promotionResult;
	
	/**
	 * 商品价格
	 */
	private BigDecimal productPrice;
	
	
	/**
	 * 商品赠送积分系数
	 */
	private BigDecimal productPointRatio;
	
	/**
	 * 商品积分系统数
	 */
	private BigDecimal customerPointRatio;
	
	/**
	 * 商品最大使用积分系统数
	 */
	private BigDecimal exchangePointRatio;
	
	/**
	 * 商品模拟成本
	 */
	private BigDecimal productSimulatePrice;
	
	
	/**
	 * 商品数量  
	 */
 	private int buyNum;
 	
 	/**
 	 * 已发商品数量
 	 */
 	private int sendNum;
	
	/**
	 * 商品调价 
	 */
	private BigDecimal productAdjustPrice;
	
	/**
	 * 调价后商品
	 */
	private BigDecimal productAfterAdjustPrice;
	
	/**
	 * 商品小计
	 */
	private BigDecimal productItemMoney;
	
	/**
	 * 商品图片
	 */
	private String imagePath;
	
	/**
	 * 商品金额 小计
	 */
	private BigDecimal subTotalItemMoney;
	
	/**
	 * 商品类型名称 
	 */
	private String productCategoryName;
	
	/**
	 * 商品售卖单位名称
	 */
	private String productSalesUnitName;
	
	/**
	 * 默认构造方法
	 */
	public OrderDetailEntity() {
		super();
	}
	
	/**
	 * 参数化构造方法
	 * @param orderCode
	 * @param productCode
	 * @param productName
	 * @param productPrice
	 * @param buyNum
	 * @param productAdjustPrice
	 * @param imagePath
	 */
	public OrderDetailEntity(long id,String orderCode, String productCode,
			String productName, BigDecimal productPrice, int buyNum,
			BigDecimal productAdjustPrice, String imagePath) {
		super.setId(id);
		this.orderCode = orderCode;
		this.productCode = productCode;
		this.productName = productName;
		this.productPrice = productPrice;
		this.buyNum = buyNum;
		this.productAdjustPrice = productAdjustPrice;
		this.imagePath = imagePath;
	}
	/**
	 * 订单编号
	 */
	public String getOrderCode() {
		return orderCode;
	}
	public void setOrderCode(String orderCode) {
		this.orderCode=orderCode;
	}

	/**
	 * 商品编号
	 */
	public String getProductCode() {
		return productCode;
	}
	public void setProductCode(String productCode) {
		this.productCode=productCode;
	}

	/**
	 * 商品名称
	 */
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName=productName;
	}

	/**
	 * 商品价格
	 */
	public BigDecimal getProductPrice() {
		return productPrice;
	}
	public void setProductPrice(BigDecimal productPrice) {
		this.productPrice=productPrice;
	}

	/**
	 * 商品数量  
	 */
 	public int getBuyNum() {
		return buyNum;
	}
	public void setBuyNum(int buyNum) {
		this.buyNum=buyNum;
	}

	/**
	 * 商品调价 
	 */
	public BigDecimal getProductAdjustPrice() {
		return productAdjustPrice;
	}
	public void setProductAdjustPrice(BigDecimal productAdjustPrice) {
		this.productAdjustPrice=productAdjustPrice;
	}

	/**
	 * 商品图片
	 */
	public String getImagePath() {
		return imagePath;
	}
	public void setImagePath(String imagePath) {
		this.imagePath=imagePath;
	}

	public BigDecimal getProductItemMoney() {
		return productItemMoney;
	}

	public void setProductItemMoney(BigDecimal productItemMoney) {
		this.productItemMoney = productItemMoney;
	}

	public int getSendNum() {
		return sendNum;
	}

	public void setSendNum(int sendNum) {
		this.sendNum = sendNum;
	}

	public long getProductId() {
		return productId;
	}

	public void setProductId(long productId) {
		this.productId = productId;
	}

	public String getProductSpec() {
		return productSpec;
	}

	public void setProductSpec(String productSpec) {
		this.productSpec = productSpec;
	}

	public String getPromotionInfo() {
		return promotionInfo;
	}

	public void setPromotionInfo(String promotionInfo) {
		this.promotionInfo = promotionInfo;
	}

	public BigDecimal getProductAfterAdjustPrice() {
		return productAfterAdjustPrice;
	}

	public void setProductAfterAdjustPrice(BigDecimal productAfterAdjustPrice) {
		this.productAfterAdjustPrice = productAfterAdjustPrice;
	}

	public List<ProductSpecEntity> getProductSpecList() {
		return productSpecList;
	}

	public void setProductSpecList(List<ProductSpecEntity> productSpecList) {
		this.productSpecList = productSpecList;
	}

	public BigDecimal getSubTotalItemMoney() {
		return subTotalItemMoney;
	}

	public void setSubTotalItemMoney(BigDecimal subTotalItemMoney) {
		this.subTotalItemMoney = subTotalItemMoney;
	}
	
	public String getProductCategoryName() {
		return productCategoryName;
	}

	public void setProductCategoryName(String productCategoryName) {
		this.productCategoryName = productCategoryName;
	}

	public String getProductSalesUnitName() {
		return productSalesUnitName;
	}

	public void setProductSalesUnitName(String productSalesUnitName) {
		this.productSalesUnitName = productSalesUnitName;
	}
	
	public String getPromotionResult() {
		return promotionResult;
	}

	public void setPromotionResult(String promotionResult) {
		this.promotionResult = promotionResult;
	}

	public BigDecimal getProductPointRatio() {
		return productPointRatio;
	}

	public void setProductPointRatio(BigDecimal productPointRatio) {
		this.productPointRatio = productPointRatio;
	}

	public BigDecimal getCustomerPointRatio() {
		return customerPointRatio;
	}

	public void setCustomerPointRatio(BigDecimal customerPointRatio) {
		this.customerPointRatio = customerPointRatio;
	}

	public BigDecimal getExchangePointRatio() {
		return exchangePointRatio;
	}

	public void setExchangePointRatio(BigDecimal exchangePointRatio) {
		this.exchangePointRatio = exchangePointRatio;
	}

	public BigDecimal getProductSimulatePrice() {
		return productSimulatePrice;
	}

	public void setProductSimulatePrice(BigDecimal productSimulatePrice) {
		this.productSimulatePrice = productSimulatePrice;
	}
	
}
